package hgz.stu.review.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HelloWorld {
	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger(HelloWorld.class);
		logger.trace("Hello World");
		logger.debug("Hello World");
		logger.info("Hello World");
		logger.warn("Hello World");
		logger.error("Hello World");

		logger.info("input args {},{}", "wfw", "wfwwww");
		logger.info("{} + {} = {}", 1, 1,2);
		// String[] argsx = {"a","3","4"};
		//logger.info("input args %d - %s ", 1, "s");
		
		

		try {

			Arithmetic ari = new Arithmetic();
			ari.divide(100, 0);
		} catch (Exception e) {
			logger.error("error {} {} eeeeeeee", "X","hhhh", e);
		}
	}
}

class Arithmetic {

	public int plus(int a, int b) {
		return a + b;
	}

	public int divide(Integer a, Integer b) {
		return a / b;
	}

}